<extend name="template/base_index" />

<block name="area_header">
    <link rel="stylesheet" type="text/css" media="all" href="__CSS__/wxshop.css">
    <link type="text/css" rel="stylesheet" src="__CDN__/jquery-uploadify/3.2.1/uploadify.css" />
    <script type="text/javascript" src="__CDN__/jquery-uploadify/3.2.1/jquery.uploadify.min.js"></script>
    <style type="text/css">
        .unify table tr{
            height:25px;
            line-height:25px;
        }
        .unify table tr th,.unify table tr td{
            text-align:center;
        }
    </style>
</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content" style="background: #FFFfff;">
            {:W('Menus/breadcrumb')}
            <form class="form" action="{:U('Admin/Product/productgroup',array('id'=>$id))}">
                <fieldset>
                    <legend>规格添加</legend>
                </fieldset>
                <div class="form-group">
                    <label class="control-label">&nbsp;</label>

                </div>
                <label class="control-label">商品规格<span class="help-block"></span></label>


                <table>
                    <tr>
                        <th width="180px">销售价</th>
                        <th width="180px">原价(必须大于销售价)</th>
                        <th width="180px">库存</th>
                        <th width="180px">成团人数</th>
                    </tr>
                    <tr>
                        <td><input type="text" name="price" value="{$data.price}"/><br/></td>
                        <td><input type="text" name="ori_price" value="{$data.ori_price}"/></td>
                        <td><input type="text" name="quantity" value="{$data.quantity}"/></td>
                        <td><input type="text" name="product_code" value="{$data.group_sum}"/></td>
                    </tr>
                </table>



                <table>
                    <tr>
                        <th width="180px">配置id</th>
                        <th width="180px">拼团价格</th>
                        <th width="180px">成团人数</th>
                        <th width="180px">拼团序号</th>
                    </tr>
                    <volist name="config" id="con">
                    <tr>
                        <td>{$con.id}</td>
                        <td>{$con.price}</td>
                        <td>{$con.sum}</td>
                        <td>{$con.type}</td>
                    </tr>
                        </volist>
                </table>

                <div style="position:relative;top:50px;">
                    <input type="submit" class="btn btn-primary js_sku_submit" ></input>
                    <a href="{:U('Admin/Product/groupconfig',array('id'=>$id))}" class="btn btn-default" ><i class="fa fa-reply"></i>添加拼团规格</a>
                    <a href="javascript:window.history.go(-1)" class="btn btn-default" ><i class="fa fa-reply"></i>返回</a>
                </div>

    </form>

    </div>

    <include file="template/wxpicture" />
    </div>
    <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">


</block>